import request from "@/utils/request";

// 查询空域类型列表
export function getList(query) {
    return request({
        url: '/flight/airspaceType/list',
        method: 'get',
        params: query
    })
}

// 新增空域类型
export function addAirSpaceType(data) {
    return request({
        url: '/flight/airspaceType/add',
        method: 'post',
        data: data
    })
}

// 修改空域类型
export function editAirSpaceType(data) {
    return request({
        url: '/flight/airspaceType/edit',
        method: 'post',
        data: data
    })
}

// 获取空域类型详细信息
export function getAirSpaceDetail(airTypeId) {
    return request({
        url: '/flight/airspaceType/getInfo/' + airTypeId,
        method: 'get'
    })
}

// 删除空域类型
export function deleteAirSpace(airTypeId) {
    return request({
        url: '/flight/airspaceType/remove/' + airTypeId,
        method: 'delete'
    })
}